﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Administrator/SystemManage.master" AutoEventWireup="true" CodeBehind="MainWebIntent.aspx.cs" Inherits="CRMSalesManagement.Manage.FrontPageManagement.MainWebIntent" %>
<%@ Register Assembly="DataPage" Namespace="DataPageTools" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="background-color: #e2e2e1; font-size:12px; margin-bottom: 10px; text-align: right;padding-right:15px;height:25px; line-height:25px">
    <link href="../../DataPage/css.css" rel="stylesheet" type="text/css" />
            订单总数：<asp:Label ID="lblTotal" runat="server" Text="lblTotal"></asp:Label>
            &nbsp;
            已处理订单：<asp:Label ID="lblRemain" runat="server" Text="lblRemain"></asp:Label>
        </div>
   <div style="width:776px;height:auto; overflow:hidden;">
<div class="GridView" style=" padding-left:40px">
         <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
         <asp:GridView ID="gvWebIntent" runat="server" BorderStyle="Double" CellPadding="4" 
                          GridLines="None" AutoGenerateColumns="False" Font-Size="12px" DataKeyNames="Id" 
                           Width="686px" ForeColor="#333333" 
                onrowdatabound="gvWebIntent_RowDataBound" onrowediting="gvWebIntent_RowEditing" 
                onselectedindexchanged="Page_Load" >
                          <AlternatingRowStyle BackColor="White" />
                          <Columns>
                               <asp:BoundField DataField="title" HeaderText="主题" >
                               <ItemStyle HorizontalAlign="Left" Width="200px" />
                               </asp:BoundField>
                               <asp:TemplateField HeaderText="需求简介">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("dementInfor") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                        <div id="div1" runat="server" innerhtml='<%# Eval("dementInfor") %>' class="divContentText" style="width:250px"></div>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center"/>
                    </asp:TemplateField>
                              <asp:BoundField HeaderText="姓名" DataField="name" 
                                  ItemStyle-HorizontalAlign="Center" >
                              <ItemStyle HorizontalAlign="Center" Width="70px" />
                              </asp:BoundField>
                               <asp:BoundField DataField="visitTime" DataFormatString="{0:yyyy-MM-dd}" 
                                  HeaderText="日期">
                              <ItemStyle HorizontalAlign="Center" Width="80px" />
                              </asp:BoundField>
                               <asp:BoundField DataField="isDispose" HeaderText="处理状态" >
                               <ItemStyle HorizontalAlign="Center" Width="70px" />
                              </asp:BoundField>
                              <asp:TemplateField ShowHeader="False">
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                                CommandName="Update" Text="更新"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                CommandName="Cancel" Text="取消"></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" ControlStyle-Font-Underline="false"
                                CommandName="Edit" Text="详细" Width="40px"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                          </Columns>
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>
                              </ContentTemplate>
</asp:UpdatePanel>
           </div>
                      <div style="text-align:center;padding-top:20px;color:red;font-size:12px">
               <asp:Label ID="lblResult" runat="server"></asp:Label>
         </div>

<div class="DataPage">
    <center>
    <cc1:datapage ID="DataPage1" runat="server" DIVClassName="yahoo">
<PageIndex PageIndexType="TextBox"></PageIndex>
    </cc1:datapage>
    </center>
    </div>
    </div>
</asp:Content>
